home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / management / FileSystemImpl.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  939 b   |  33 lines

  1. package sun.management;
  2.  
  3. import java.io.File;
  4. import java.io.IOException;
  5. import java.security.AccessController;
  6. import sun.security.action.LoadLibraryAction;
  7.  
  8. public class FileSystemImpl extends FileSystem {
  9.    public boolean supportsFileSecurity(File var1) throws IOException {
  10.       return isSecuritySupported0(var1.getAbsolutePath());
  11.    }
  12.  
  13.    public boolean isAccessUserOnly(File var1) throws IOException {
  14.       String var2 = var1.getAbsolutePath();
  15.       if (!isSecuritySupported0(var2)) {
  16.          throw new UnsupportedOperationException("File system does not support file security");
  17.       } else {
  18.          return isAccessUserOnly0(var2);
  19.       }
  20.    }
  21.  
  22.    static native void init0();
  23.  
  24.    static native boolean isSecuritySupported0(String var0) throws IOException;
  25.  
  26.    static native boolean isAccessUserOnly0(String var0) throws IOException;
  27.  
  28.    static {
  29.       AccessController.doPrivileged(new LoadLibraryAction("management"));
  30.       init0();
  31.    }
  32. }
  33.